import thenFs from 'then-fs'

// //通过then-fs读取文件
thenFs.readFile('./text/1.txt', 'utf8').then(
  res => {
    console.log(res)
  },
  err1 => {
    console.log(err1)
  }
)

thenFs.readFile('./text/3.txt', 'utf8').then(
  res => {
    console.log(res)
  },
  err1 => {
    console.log(err1)
  }
)

thenFs.readFile('./text/2.txt', 'utf8').then(
  res => {
    console.log(res)
  },
  err1 => {
    console.log(err1)
  }
)

//then-fs链式调用读取文件

